package com.gasstion.dao;

import com.gasstion.entity.Userinfo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface UserinfoDao {

    public Userinfo login(@Param("workName") String workName,@Param("upwd") String upwd);

    public List<Userinfo> query();

    public int update(Userinfo userinfo);

    public List<Userinfo> querySearch(@Param("username") String username, @Param("offset") int offset, @Param("limit") int limit) ;


    public List<Userinfo> queryAll() ;

    public long getTotalCount(@Param("username") String username) ;

    public void save(Userinfo userinfo) ;

    public void del(Integer[] ids) ;

    public String getPwdByUName(@Param("uname") String uname);

    public List<Userinfo> getRoleUser();

}
